//
//  LiaisonBaseLite.h
//  FMS
//
//  Created by Steven on 10/20/13.
//  Copyright (c) 2013 QGSVN. All rights reserved.
//

#import "Titled.h"

@interface LiaisonBaseLite : Titled

/** Returns a query for all the lists in a database. */
+ (NSMutableArray *) queryListsInDatabase: (CBLDatabase*)db;

+ (NSMutableArray *) filterLiaisonByContactType:(NSString *) contractType inDatabase: (CBLDatabase*)db;

+ (NSMutableArray *) searchLiaisonByKey:(NSString *)keySearch InDatabase: (CBLDatabase*)db;

+ (NSMutableArray *) queryLiaisonFrom:(int)indexFrom numberPage:(int)count;

+ (NSMutableArray *) filterLiaisonByContactType:(NSString *) contractType from:(int)indexFrom numberPage:(int)count;

+ (NSMutableArray *) searchLiaisonByKey:(NSString *)keySearch  from:(int)indexFrom numberPage:(int)count;
- (instancetype) initInDatabase:(CBLDatabase *)database withTitle:(NSString *)title;

+ (NSMutableDictionary *)getLiaisonByEmail:(NSString *)emailAddress;

+ (NSMutableArray *) queryNewLiaisonFrom:(int)indexFrom numberPage:(int)count;

+ (NSMutableArray *) filterNewLiaisonByContactType:(NSString *) contractType from:(int)indexFrom  numberPage:(int)count;

+ (NSMutableArray *) searchNewContactByKey:(NSString *)keySearch  from:(int)indexFrom  numberPage:(int)count;

+ (NSMutableArray *) queryNewLiaisonByRole:(NSString *)role from:(int)indexFrom numberPage:(int)count;

+ (NSMutableArray *) filterNewLiaisonByRole:(NSString *)role byContactType:(NSString *) contractType from:(int)indexFrom  numberPage:(int)count;

+ (NSMutableArray *) searchNewContactByRole:(NSString *)role byKey:(NSString *)keySearch  from:(int)indexFrom  numberPage:(int)count;
+ (NSMutableArray *) searchNewContactByRole:(NSString *)role byKey:(NSString *)keySearch andContactType:(NSString*)contactType from:(int)indexFrom  numberPage:(int)count;

+ (NSString *)generationContactId;

@end
